package org.example.service.impl;

import org.example.bean.User;
import org.example.mapper.UserMapper;
import org.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    public int checkUser(String username) {
        return userMapper.checkUser(username);
    }

    public User login(User user) {
        return userMapper.login(user);
    }
}
